!!!
%html{"xml:lang"=>"en", "lang"=>"en", "xmlns"=>"http://www.w3.org/1999/xhtml"}
  %head
    %meta{"content"=>"text/html; charset=utf-8", "http-equiv"=>"Content-Type"}/
    %title
      TomaTime - 
      = yield(:title) || "El tiempo es oro ¡Regálalo!"   
    = javascript_include_tag :defaults, "bubble-tooltip", "window"
    = stylesheet_link_tag 'base', 'tomatime', 'error', 'bubble-tooltip', 'default_prototype', 'alert'
    
    <!--[if lt IE 7]>
    <style type="text/css">
    img { behavior: url(/javascripts/pngbehavior.htc) }
    </style>
    <![endif]-->
    <!--[if IE]>
    <link rel='stylesheet' href='/stylesheets/ie.css' type='text/css' media='screen' title='' charset='utf-8' />
    <![endif]--> 
    
    = yield(:javascript)   
    
  %body{ "id" => yield(:body) }
    #container
      #header.clearfix
        = link_to image_tag(image_path("/images/logo.png"), :alt => "logo"), main_path, :title => "Inicio"
        %cite
          el tiempo es oro, ¡regálalo!
      <!-- #header -->
      
      #content.clearfix
        .left
          = yield(:left)
        <!-- .left -->
        
        .middle
          #breadcrumb
            = yield(:bread)
          = content_tag 'div', flash[:notice], :class => 'flash_ok' if flash[:notice]
          = content_tag 'div', flash[:error], :class => 'flash_error' if flash[:error]
          = content_tag 'div', flash[:alert], :class => 'flash_alert' if flash[:alert]
                                    
          = yield
        <!-- .middle -->
        
        .right
          = yield(:right)
        <!-- .right -->
      <!-- #content -->
      
      #footer.clearfix
        %ul.menu
          %li= link_to "Inicio", main_path, :title => "Inicio"
          %li= link_to "Qu&eacute; es Tomatime", acerca_path, :title => "Acerca de"
          %li= link_to "Contacto", contacto_path, :title => "Contacto"
          %li= link_to "¡ Descarga YA el código fuente en Google Code !", "http://code.google.com/p/tomatime"
        %span
          Copyright 2007
      <!-- #footer -->
    <!-- #container -->
    = render :partial => "shared/google_stat"
<!-- #debug -->
= # link_to "Validar XHTML", "http://www.validome.org/referer"
= # link_to "Validar CSS", "http://jigsaw.w3.org/css-validator/check/referer/"

- if logged_in? && !current_usuario.admin?
  = periodically_call_remote :url => actualizar_conectados_usuario_home_path(current_usuario.login), :frequency => 55
  = periodically_call_remote :url => notificar_nuevo_chat_chats_path, :frequency => 20
  #sonido_nuevo_chat

